{% extends 'app01/base.html' %}

{% load bootstrap3 %}

{% block header %}
    <h2>Log in to your account.</h2>
{% endblock header %}

{% block content %}

    {% if form.errors %}
    <p>用户名密码不匹配，请重试</p>
    {% endif %}

    <form action="" method="post" class="form">
        {% csrf_token %}
        {% bootstrap_form form %}

        {% buttons %}
            <button name="submit" class="btn btn-primary">log in</button>
        {% endbuttons %}

        <input type="hidden" value="{% url "app01:index" %}" name='next'>
    </form>
{% endblock content %}